package cn.s1995.sloth.bizs.oo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;

/**
 * OrderItemDTO
 *
 * @author Lex
 * @description
 * @date 2023/12/26 18:46
 */
@Data
@Schema(description = "订单项物品参数")
public class OrderItemDTO implements Serializable {

    @NotNull(message = "产品ID不能为空")
    @Schema(description = "产品ID" ,required=true)
    private Long prodId;

    @NotNull(message = "skuId不能为空")
    @Schema(description = "skuId" ,required=true)
    private Long skuId;

    @NotNull(message = "产品数量不能为空")
    @Min(value = 1,message = "产品数量不能为空")
    @Schema(description = "产品数量" ,required=true)
    private Integer prodCount;

    @NotNull(message = "店铺id不能为空")
    @Schema(description = "店铺id" ,required=true)
    private Long shopId;

    @Schema(description = "推广员使用的推销卡号" )
    private String distributionCardNo;
}
